ansible for windows
{

服务器控制端配置
{
环境要求
Ansible >1.7
yum install krb5-devel krb5-lib krb5-workstation
python 模块 pywinrm kerberos 


ansible 配置
{
自定义 windows 的 Inventory
cat windowsuse 
[windows]
172.27.5.10 ansible_ssh_user="Kwin7" ansible_ssh_pass="Txxxx" ansible_ssh_port=5986 ansible_connection="winrm" ansible_winrm_server_cert_validation=ignore

}


测试 
ansible -vvv  -i windowsuse windows  -m win_ping

}

被控端
{
windows 系统要求
win7 sp1 server 2008 R2  >

    底层通讯基础
    底层基于 kerberos 进行认证，使用PowerShell，
    PowerShell>3.0 , Management Framework >3.0
    WinRM(Windows远端管理，英文全称WS-Management)
    
用 4.0 进行测试，修改 ps 执行权限
Set-ExecutionPolicy Unrestricted


手动配置有问题,用 ConfigureRemotingForAnsible.ps1 脚本可以 
https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1


}

}

https://www.ansible.com/integrations/infrastructure/windows
https://docs.ansible.com/ansible/latest/user_guide/windows.html
https://docs.ansible.com/ansible/latest/user_guide/windows_setup.html#host-requirements
